import React from 'react';
export default class Item extends React.Component {
    constructor(props) {
        super(props)
    }
    onItem(e) {
        e.preventDefault();
        e.stopPropagation();
        this.props.onItem(e);
    }
    render() { 
        return <div className="item_container" style={{
            width:(this.props.w + 10) + 'px'
        }}  onClick={(e)=> this.onItem(e)}> 
        </div>

    }
}